package cn.rose.thread;
/**
 * @FileName Test.java
 * @Description: 
 * @author rose
 * @version 1.0
 * <p>Company: ROSE-SOFT</p>
 * <p>Copyright: Copyright (c) 2011</p>
 */
public class Test {
	public static void main(String[] args) {
		
		ThreadPool threadPool = new ThreadPool(10);
		for (int i = 0; i < 20; i++) {
			final int n = i;
			threadPool.execute(new Runnable(){
				public void run() {
					System.out.println("hello world " + n);
				}
			});
		}
		
	}
}
